package com.his.invdrug.dao;

import com.his.invdrug.entity.InvDrugHeaderItem;
import com.his.invdrug.entity.InvDrugHeaderItemKey;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface InvDrugHeaderItemMapper {
    int deleteByPrimaryKey(InvDrugHeaderItemKey key);
    int insert(InvDrugHeaderItem record);
    int insertSelective(InvDrugHeaderItem record);
    InvDrugHeaderItem selectByPrimaryKey(InvDrugHeaderItemKey key);
    int updateByPrimaryKeySelective(InvDrugHeaderItem record);
    int updateByPrimaryKey(InvDrugHeaderItem record);
	//===================自定义功能===========================

    /**
     * 通过出入库单ID查询该库单所有项目
     */
    List<InvDrugHeaderItem> selectByHeaderID(String inOutID);
    /**
     * 通过出入库单ID删除该库单所有项目
     */
    List<InvDrugHeaderItem> deleteByHeaderID(String inOutID);
}